fixed mediacapture bug