Fix primary key