Fixed bug loading groups for register