fix bug: can't search if the search condition is lowercase