Bug Fixed: Undo does not reset when exec js