fixed the query_params array problem