Fixed a 'new notes aren't being perssisted bug'a.