fixed some groups bugs