Fix statistics function