fixed the undo bug, i guess...no problem detected so far!