Fixed default field mapping from metadata

Not sure where this broke. But the default mapping for fields from metadata got the data from the wrong variable.

This PR fixes it, but I can't really guarantee this doesn't break other things. It works in my case and tests still pass.