minor fix to search/replace