fix error code for file not found