fix sync counter