c packet fix