Fix bug which did not make switching of queues working correctly