fix searching errors