minor tgm bug