Fix the exception about getting the file name

No match.