correction bug JS batiment