fix bin search