fix the errors of past editing