fix sync flags