fix cannot connect error