repair errors of the last commit