commit when setting lastRun.