Set config contained a bug after refactoring