fix config file reading