Fixed mediaRecorder variable bug