Fix variables after reset