bug fix in applyPolarizationcorrection in detectorCorrection.cpp