fixed search function (multiple vs. single result)