fixed bug with undo/redo/clear caused by switching to broadcast.emit