Fix a typo causing a bug when a connection is edited