fixed getPlaylists method