bool Packet::createPacketType() bug fix