repair map_generator()