Fix wrong parameter to connect.