element query fix