Fixed connect script