Fixed a bug when the project settings are empty.