fixed bug in applyMask