Fixed crash when opening settings for the first time.