Fix cur_text problem