fixes for WebRTC