Fix detector_t definition.