Bug fix temp file

Can't use temporary file.