fix query string assembly if query parameters are already present