Fixed a bug with connections being misplaced.