fix searching , crash