c code fix