Effects of Metallicity on Mode Switching in Cepheids