downcase/uppercase bugfix in search.