Fix TypeError on line 612, in show_text