fixed bug with navigator.getMedia