fixed bugs in meetMask()