sync loop fixed