Fix bug in generateFilename