fix judge filetype bug