Fix embedded mode.