Repair erroneous auotmated refactoring