note creation bug fix