fix sync behavior