fix compatibility with connect 3.0.0
Merge pull request #925 from stuartf/connect3

Connect 3.0.0. error