fix search condition

fix search condition