fix bug with saving of newly created note