fix error when config file is empty