Fixed socketio issues