Solved error of bounding boxes by updating origin.