fix playlist endless loop