fix errors with webview