fix sync endpoint