fix bounding box