bug fix

This commit fixes a connection bug.