fixed: save the file more than once