Fixed unordered list hang

Applied fix from Caius:
[https://github.com/tobijk/caius/commit/924e77a8cb8c95ab787804da231a5bc4
32437511]