Fix saving new file