Fix the signature of the dispatch call

the request needs to be a parameter