empty datasets shouldnt crash