Fixed potential bug where passive queries (for prefetching) would have
stopped before running.