Fix empty result with done flag.