Update connection.rb

Correction of my last pull request
I just tried something last time but this change should not be in the official file :)