Fix a bug with query params.