Text format, fix bug