fix connection following bug