         do {
             // configure jukebox
             jukebox = Jukebox(delegate: self, items: [])!
+            bufferredTracksJsonArray = [JSON]()
 
             pluginResult = CDVPluginResult(
                 status: CDVCommandStatus_OK

            self.jukebox.stop();
            self.jukebox.removeAllItems();
            self.jukebox = nil
            self.bufferredTracksJsonArray.removeAll()
            self.lastBufferedIndex = -1

            self.jukebox = Jukebox(delegate: self, items: [])!


            for track in tracks {
                let data = JSON(track)
                self.bufferredTracksJsonArray!.append(data)
                //self.doAddItem(data)
            }

