reset configuration before loading the new one.