Properly set config in automatic mode.