improvement search condition bug.