Corrected annoying error with mask