Fix category primary key