Loinkham TD: bug fix

bug fix