fix addition to link table