Remove duplicate ports