fix config file load issues