fixing plannedRouteOrder functionality