Bug fixes to live search