Fix models primary keys