Fixed a bug in Spike Detector that caused a crash during xml load