fixed stacking for closed curves