fix some bugs of checking TPeriods.