Fixing primary keys.