detector fixes