fixed a bug involving nested lists

The lists were not being parsed correctly