Transformation bug involving metadata

And now in the right branch...