Fix inconsistencies in error positions