Now "correctly" adds extra attributes to deleted elements