Fix bug with XQuery annotations.