Fixed bugs in StatsActivity