fix exception when no connections are configured