Fix getUserMedia throw error