fixing group mask checking