handle doc sync problem