Fix params query on length 0