clean duplicated ports