Fixed bug where undo/redo buttons weren't firing when enabled.