fix loading/saving when file doesn't exist