fix mask setting
fix masking preview