Fixed loading and updating of groups.