Fixes issue with connect function and connection attribute not being set correctly when instantiating.
Merge pull request #13 from hybridgroup/234-connect-bug

Fixes issue with connect function and connection attribute not being set...