fixed sync problem