Fixed even more bugs in the packet generator.
Now the packet generator is up to date.