Fix config reader