fix text_bounds