fix a bug caused by file name too long