fix error positioning