Legal name change, W2 has old name

Went through a legal name change last year.  I have the updated Social Security card.  Changed jobs.  1 W2 has the dead name and 1 W2 has the new name.  Both have the same SSN.  How do I deal with this?