bounding box fixes