Fixed logic issue with bounding boxes