Fix socketio connecting bug