search bugfixing