fix bug, clear timeout when undoing operation