Fix to show correct nesting levels