fix some search stuff