Fix for preview tool

Fixes https://github.com/Connexions/webview/issues/830