Fixed the playlist functions