Fix error in config reader