Fixed a typo when the list of connections is empty.