Passing argument on existing router Object

I do want to use Graphhopper Routing Api within the Leaflet Routing Machine API.
Everything works fine but when I make a request with e.g. vehicle car and then want to make a request e.g. on bike the assignment
myRoutingMachine.getRouter().options.urlParameters.vehicle = “bike” changes the vehicle only when I make the request another time (I mean I have to make it twice)

Any comments on this are welcome.
Ruth

fixed it by myself. Setting the router.options before setWaypoints.