Fix getUserMedia bug