fixed the way the packet constructor copies the packet data