wavelet: hack: don't try to rank on leaf node