Fixed period bug