fix file pattern bug