Fixed slow opening of settings dialog the first time it's opened.