Fixed broken template stuff.