Fix RPC interface bug in repos