fix removing many groups