fix bug crash in WebViewAdapter