fixed missing groupsOrder check