fix insert note bug