fix to remove drift from schedulePeriodic
Merge pull request #1162 from kirkshoop/stableperiodic

fix to remove drift from schedulePeriodic