Correct error from the error object