restore the correct config