fix output of empty data