fix the stacking order of length distribution