Fix handling of metadata in schematic file mapping