I'll make correction, but the some issue isn't in the original code too al line 132  ? (OnSetConnectClass function)