Fix implementation for tempFile()
Fix implementation for tempFile()