fix bounding box coverage algorithm