fixed rbsearch