correction bug off canvas