fix async connect bug