Fix the xpath_query bug for element class