fixed bugs with depthMask