Fix playlist end bug.