search works more than once