Fix reference in CanvasWidget.