Fix the packet header