fix a bug char not init