fix mask_driectly