Cleared template files and fixed statistics page