Updated connect-once to pass error