Try to fix media recorder crashing bug.