Fix unexpected text removed issue.