fix build and test error, should not use QueryPath