fix out of range bug in connection information