Fix for connect method parameter order

Sorry - I made a mistake in my last pull request, the method params order was messed up. This corrects it.