fixed the issue of highlighting current selected item in menu bar