Fixing temporary file creation.