Fixed error in statistics.jsp after refactoring