fix potential bug of OnLoadingRequest and OnWebDataReceived