Added more checks to loadobj in ScRemoveWaveforms