Fix TypeError on line 593, in show_text