fixed bug with too many arguments in connect causing crash