fix bounds on search