fix webrtc loop