Bug fix in remove_from_group