Bugfix for Sync when restarting