Fix undefined variable reference.

Fix an undefined $li.

I suppose this is what I get for working on two copies in parallel :)