I think this assertion should be there to ensure this global is not changed when we write the environment file. If we need to initialize it should be done before the configuration