Packet::setPacketValue): bug correction