work
Same bug fixed.
Same bug fixed in second loop over scintillators.