fix primary key