Fixed bug on # connections