menu sort bug fix