Fix label for= by adding IDs where needed