fixed tgm error