Transformation bug involving metadata