Fixing global search always returning search with no parameters