bug fix for issue where only 1 note was getting saved