Fix OK/KO group stats, close #898