Fix server mode change