fixed item nesting bug