Fix recording to file.