fix sync method