z stacking fix