fixed the same bug(non-ending rotation of middle menu) for this branch too