Fixed buggy TMR8 implementation