Fixed ref to templates