Found ap roblem with the queues; bad implementation