fix sync example logic