fix bug in Ton, #38