Fixed connect bug in console.