Thus, one embodiment is a method of fabricating an electrochromic device including: (a) forming either an electrochromic layer including an electrochromic material or a counter electrode layer including a counter electrode material; (b) forming an intermediate layer over the electrochromic layer or the counter electrode layer, where the intermediate layer includes an oxygen rich form of at least o