Fix initialization with canvas not setting the active canvas