Fix system stack error