Fixed a bug in old_api.connect
- Occurred when connecting an input to a multi-dimensional ensemble