Fix server connect flow error