fixed bugs in filtering menus