fix access to search method. fixes #1392