repair the error