fixed search condiriont