fix error code for missing file