SOC: Fix dialog rotation crash