fix query to use correct search param