Fixed a potential crash with bad data detectors.