Fix long-running Settings crash