Fixed note creation bug.