Fix #7991 - better updateing of error status and char position of errors