repair code edit bug