Fix bad detector reference