fixed a group-check bug