Case Sensitive query fix