Fixed black canvas problem on main.js