File count fix