Fixing period problems.