fix minor bug of judgement of file lines