Fixed composite primary keys when using foreign key and string.