fix for when searching for terms with spaces