Right counting <li> in nested collections

Thx @joschi127 for pointing it.
Although this does not affect the functionality of the bundle, it really makes html look prettier.
Solves #221.