Fixing a bug when processing the queued tuples.