refs 4564 correct calculation for statistics