Fixed a crash when trying to show the route.