Workaround for login expiry theme switching issue