fix cok status in connect error