Correct dynamic setting of protocol