Fixed get_canvas for adding toolbar.