remove redundant ports to avoid collision