fixed a bug where all possible menu items were returned