fixed a mask bug

fixed a mask bug