Added hack to ensure proper config is restored after config spec is run.