bugfixes in search algorithm