Tiny fixes in tmr.c