fixed **2 bug in CreateConnections