fix bounding box bug