fixed a bug in the text bounding box calculation.