Fix ScriptSubscribeToEvent bug when new object with same memory address.