Fixed canvas not loading bug.