fix corner case when all vars are printed