getUserMedia API fix