Fix labels by adding id fields.