fixed the remoting objects' lifetime issues