Corrected the JSON-RPC dispatch method

Bad selection of the service to use