fix bugs in syncNote