Fix bug in playNext()