Corrected handling of extreme cases for tau-computation.