Fix crash by making sure to update currentPlayingIndex in download