Bug fixed in funct map_route()