Fix config out of scope