Correcting error in stacking