- fixed a bug in masking.