stats: ensure grep is always successful