menu sorting bug fix