Fix bug in playback