fixes webRTC connection issue due to garbage collector