- fixed incorrect index of connection