fixed bug in RPC Engine