fixed bug for TS1