fix slowdown in menus