fixed char typecast