Fixed a bug when setting ContentSpec children.