fix potential crash bug in RouteProcessorSelection