Small correction of the queue handling process