Bug in map class generator, close #160.