fix bug when config file not specified