fixed bug in char*