Fix typo in connect method