Patch ref to QUERY_STRING