Fix jsonrpc package header problem, fix restore problem