Fixed connection creation with customer headers

The part of code in initialize was overwriten by line under it ... no custom headers where propagated. I have fixed it.