From NPozzobon : Fix to prevent crashes of the TT code at high PU

code from @pozzobon
Replacing the PR #2692 (this PR #2692 should be closed)