Fix a subtle map bug that erred on nested maps