fix error pos