Fix temp file naming