Fix paste primary key references