A method includes loading a mask having a defect into a chamber. The defect of the mask is repaired by forming a repair feature in a repair region of the mask. The forming the repair feature includes irradiating the repair region of the mask with a radiation beam. The forming the repair feature further includes while irradiating the repair region, injecting a precursor gas into the chamber to form a first film of the repair feature on the repair region, and while irradiating the repair region, injecting a cleaning gas into the chamber. The cleaning gas reacts with an impurity material in the first film to transform the first film into a first cleaned film.
展开▼