Modified search to use correct query parameter