Some output generated, but with strange one-child nodes