fix char problem