[PATCH] tm broken vs. nil encoding