fix for bounding box