Fixed wrong FileInfo check