fix undo in chrome etc