Fixing duplicate issue for Dual Pivot