fix issue when empty config file

Related to #1528