fix #674

For some reason having an empty UL list causes the problem