Fixed duplicate call to get_settings