small fixes for search