fix a bug in the calculation of the corrected TDC time