fixed logic in connections