fix query_string method