fix z_route_options only when pattern is matched.