Fixed small threading error where the counter of the packet ammount was
overridden by an allocation