fix search problem. Fixes #45