fix c issues