fixed bug in draw_limited_text