Fix connect commands