Fixed issue where new notes weren't saved