fix residue