passing wrong value to csp_num_routes_left, should be last index found