fix bug in get_text_obj()