Fixed bugs in FireworkPacket createPacket(..)