Fixed bug in Connections class.