fix notes dupplicate bug