correction bug chargement canvas