Fixed problem with bounding box search