fix c string problem