Fix end of playlist bug