Fix get_project_settings  don't work in some cases