Fix the sync loop