fixed bug with finding a metadata geometry in getMetadataRegions