format text fix bug