Tolerate different instances for query engine