fix bug with bsp_select_cache