File generateFilename fixed