Add check for mask type none