Further fixing of render_text