Fix an issue causing non-smooth freehand
Support clear note
Fix issues on undo and redo