fixed lastrun setting