fixed config file access bug