Temp file correction