Fix duplicate query paramaters