fix undo selected stx