fix bug when no config file exists