bug fixes to contact group attach and detach