fixed real_connect() error