repair Link errors