fix, now text is stripped even when element changes