fixed transformation of bounding box