Added bounding box realignment