missing file error handling fix