Fix minor bug in tw-sync
Fix minor bug in tw-sync