fix list nesting problem