fix issue with searching