Fixed an issue adding objects to groups