Correct Mistake in file check