fix aync connect bug