fixes sync loop bug