fix char error