Fixed misspelled key. Use settings.appProfiles instead of
settings.profiles