undo fix

still crahs but work