Fix simulated detector example