Fixed some culling and undo stuff