Fix a bug that file name should be printed