Corrected bug on bounding boxes