small fixes to search