fix errors for "add_geomap" macro