Fix config reading