fixed sync lock issue