Fix undefined connections