Bug fix for last regression test (--search related)