Fixing primary key column problem