fix sync problem