fix Connection creation