fixed crash if playlist is empty