fix potential error where sync may overwrite local note with remote changes if note was too large