fix uninitialised value in preprocess packet