Bug fixes in process output error code.