fix the bug that cause file name problem