Fixed a bug when the mask is disabled.