Fixed bug with failed searches