Fixed removing previous switch config