Fix a couple of recording bugs.