Contacts: Fix add groups. Ref #522