Finally made the map path be generated