fix incorrect stement of case sensitive check.