Fixed a bug in the primary key store (data importing)