fix bad configuration for primarykey in model