Bugfixes in search.