fix searching problem