fixed bug mapping metadata across schemas