Renaming the mask type to proper one