Fix bug in menu position initialization