fixed problems at playback end