Correcting computation bugs in stats activity