Filename counter fix