fixed #313 in RPCServer.java