fix groups redirect loop