fixed some crash in webview