char type fix