Fix temp file