Fixing a bug in the queueing system