fix bug for short string convert