fix bug when first item in menu is selected