fixed period bug