Fixed bug when adjusting queue size