Fix not recognizing file names correctly