fix autoConnect option
Merge pull request #728 from nkzawa/patch-8

Fix autoConnect option