Fixed the canvas clearing in the initSceneVars function