Fix missing template declaration