Fixed small error that only occurs with a full queue.