to char array fix