fix bug preventing adding multiple connections