fixes in d/dt and tte/tten spellmod code