fix temp file