fixed output filename of temp file