fix select_cf bug