Fixed bug with initial groups creation.