Can you help me understand when was `uninit()` called in the original code?