fixed the broken undo chain for extract local variable.