made sure groups can be moved properly