Bug fix of PeriodicAnalysis