faulty passing in param from search