FIXED: Bug in queue tracking logic.