Fixed minor bug in connect.sh