fix error parsing