fix error object in result