Make nested elements add properly, fixes #97