Correct bugs with error code processing and parsing