Correct tree structure for response