Fix list nesting error