Right counting <li> in nested collections

Although this does not affect the functionality of the bundle, it really makes html look prettier.