Properly convert nesting