Fixed an error with primary keys mapping of values.