fix several playback bugs