Fix bug where allowed child node types reset