Fixed bug in moving connections.