fix a fatal bug in createPrimaryKey