Fix rounding bug in TD04