record/playback bug fix