fixed issue with figures not having canvases