fixed bug of char[]