Fixed a crash with empty settings