Fixed autocomplete when there are no query parameters.