Corrected continue logic in walkQueue()