Tried fixing undo, doesnt work yet