Small template fixes in statistics and also,
important fix for the calculation of total_courses_funds in show_all_courses