fix issue with config construction