Fix an issue which could cause new local associations to be replicated multiple times to peers.