Fix bugs with descendant path selector.