fix little bug on getPlaylist function