fix control period bug