Fixed a bug in packet based queues