Fixed stupid template bug