correction bug on rotation