fixed group validation bug