fix multiple connect() calls
fix multiple connect() calls