Fixed a bug with playback never quite getting to the end.