search program bug fix