fix config file handling bug