Fix corrupted stack