Make sure the groups count for the loggedin user or superadmin is consistent