fix bug char to string