Bug fix: a map node will be properly closed once the last element in
that map is reached.