fix errors for "add_map" macro