How I Met Your Mother when Ted died his hair blond?

Ted dyed his hair blonde in season 5 episode 24 entitled "Dopplegangers"