fix memory issue with access query, dismax query test