fixed char problem