Fix SumFile function.