Fixed undo with tileset change.