Fixed getFilename