Fix directive template