minor fix to search