Fix duplicate history with same queryParams