Fix bug where only first cron refresh occurs.