prevent using an uninitialised config in generate config