Fix primary key generation isbn issue