Changing DescendantOrSelf to DescendantOrSelf.First as it doesn't work with dynamics