correction bug JS