Fix typo
Refactor dope rpc