Fix crash on canvas reinit