bug fixes and invite user to a group