fix bug of register MessageGeneratedRpcHandler not work