Fix problem with query string in request