fix bug in query reconstruct in web view