error message correction