fix bug using the secret when the connection is already up
1.0.1