fix handling of query params in GET