readyQueue bug fixed