fix a bug in PredicateMask