correctly parse query parameters for render control