Fix the file judgement bug.