fixed insertTicks undo behavior

fixed insertTicks undo behavior