Fix off by one problem in playback.