fixed the cloning for Connections, which was broken due to rewrite