fixed filecounter