fix popup menus when a list is passed in