bin search fix