Correction to fixed testing std/var in detector.