fix masking