Fix function for generated file in BigAverage.