fix item nesting