added fix to keep the properties of child-spectra valid and a minor fix to aggregate spectra without error