fix playlist length bug