fix the textContent Bug