Fix params query