Fix bug in settings loading.