bug fix: Entire paragraph is deleted when using "after" element