Remove repeated connections.