Fix a small glitch in queue code