Fix confused sync

syncto in loop should've been eliminated when syncfrom became sync.
Fix config timestamp